package dborm

import (
	"time"
)

//Mqttconf struct
type Mqttconf struct {
	UUID       string    `xorm:"not null pk TEXT 'UUID'"`
	ClientName string    `xorm:"index not null TEXT"`
	PubTopic   string    `xorm:"not null TEXT"`
	SubTopic   string    `xorm:"not null TEXT"`
	MasterID   string    `xorm:"index TEXT 'master_id'"`
	Retained   int       `xorm:"not null default 1 INTEGER 'retained'"`
	CreatedAt  time.Time `xorm:"created"`
	UpdatedAt  time.Time `xorm:"updated"`
	DeletedAt  time.Time `xorm:"deleted"`
	//Constraint string `xorm:""fk_mqttConf_tcpConf_1""`
	//References string `xorm:""tcpConf""`
	//string     `xorm:""`
}
